package com.dreamwhale.machinery.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dreamwhale.machinery.goods.entity.DriverInfo;
import com.dreamwhale.machinery.goods.entity.DriverWorkInfo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 司机招聘 Mapper 接口
 * </p>
 *
 * @author Author
 * @since 2020-05-28
 */
public interface DriverInfoMapper extends BaseMapper<DriverInfo> {
    DriverInfo getHot();

    /**
     * 司机招聘发布详情
     *
     * @param infoId
     * @return
     */
    DriverInfo selectDriverInfoBytypeId(@Param("infoId") Integer infoId);

    /**
     * 查询司机招聘
     *
     * @param salaryMin
     * @param salaryMax
     * @param years
     * @param province
     * @param city
     * @param type
     * @param types
     * @return
     */
    List<DriverInfo> selectDriverInfoHome(@Param("salaryMin") Integer salaryMin, @Param("salaryMax") Integer salaryMax, @Param("years") Integer years,
                                          @Param("province") String province, @Param("city") String city, @Param("type") Integer type,
                                          @Param("types") Integer types, @Param("title") String title, @Param("driveTypeId") String driveTypeId);
}
